changed constants to instance variables in test