Basic hit test implementation