change rails helper to shorten factory call and modified test