Fixed some syntax issues with user API unit tests