Collision tests of type "sprite" not working correctly on custom entities?

Hi, I am using a custom sword with a collision test of sprite type to detect collisions with other entities.
However it does not work with all entities. It can detect sprites of the hero and enemies. But it cannot detect:
-The sprites of custom entities which are not moving (if they move they are detected).
-Built-in NPCs (at least if they are stopped).
-Built-in blocks.
-Maybe other entities I have not checked...