Missing test for file lock which I've forgotten to add