added tests for api calls
compilation warnings and redundant condition
Merge pull request #40 from b97pla/feature/test_rest_api

added tests for api calls