* refactored test cases.