add more assertions to test
Use filename to select parser
Optimise removeCache using internal method that is not internally
synchronized