add test code for filelock