refactor test LockSystem