Adding basic test for User creation via API.

The following changes add a basic test for the creation of Users via the
API layer. More tests will be added in the near future.
Can these 5 lines of code be shrunk down to 1 line? If you think that doing so would harm readability, feel free to ignroe my suggestion.