add register handler for test