trivial refactoring of tests