Unit test for ClasspathFileStore and bug fixes.