add test for registering path once