simplifyied the create_test_statement helper method