Added generalised test cases for all methods.
Identified bugs have been fixed.