Add test for registering interface as safe type