fixed magic numbers in test method