Integration test to test register endpoints