Add test for register/unregister database