fix tests to not be directory dependent