02124da Add unit tests

Authored and Committed by omajid 10 years ago
    Add unit tests
    
    Add unit tests to characterize and document the current code and clean
    up some existing code. Preserve existing behaviour, including all bugs.
    
        
file modified
+8 -0
file modified
+3 -0
file modified
+26 -14