added file lock test from Dennis Kaarsemaker