ensure nerf dart loses trailing path

also add unit tests!