Added basic tests to shwocase the use of lock/unlock feature