Removed dummy test (for now, will implement real tests later on). Fixed logic a bit regarding change of passcode and lock state.