testing create_with method