fixed unit tests since they wouldn't pass when running the test script, also made the tests grab the absolute path in an intelligent way, also removed console logging where unnecessary