fixed issue with staticFIleHandler when running tests