fixed tests for localdisk and fixed a bug in it