modified tests to change directory when running each test