fixed tests, added sql dir