refactoring composed_test to be more readable