added tests for all methods