refactor test case for readability