added tests for compose method