added programm test, api call example
test refactoring: move code to TestBase
code cleanup