initial server API validations
fix tests
Merge pull request #9 from datacentred/api_validations

API Validations