refactor test requires