refactor test to reduce visibility