refactor some tests using build in methods