refactored test cases to use setUp