Clean up mouse test code