fixed sales agent end point and added tests
removed * imports
added licence header
Merge branch 'feature/rest-test' into develop