Added unit tests for hit detection on invisible canvas layer simplified unit test for hit detection on invisible canvas