Fixed a leak introduced in Mouse 1.04
Added the test for that leak