Imp encapsulated tests

 - merge from master
 - renamed travis_run_tests_encapsulated
 - removed DB_NAME from parameters