added more testcases for function compose