fixed test
fixed tests, added const TESTS_BASEDIR