Add functional test for registry server.