Fixed errors in API.php and added another assert for the create user test