adding test that should pass when refactored