refactor & cleanup mouse test case.