slightly cleaned up test case