I struggle too often with finding the correct combination of Layer and Mask in Godot, so I made this quick test/demo to refer to.
It is not universal, of course, but it might be helpful to others too.
Check it out on itch.io: https://gheja.itch.io/godot-collision-demo
Check out the source too: https://github.com/gheja/godot-collision-demo