tests written
lock code