Working unit tests for everything except unlock