Add register API test