Give handlers factory correctly
Test registeration of REST API