Implemented locker#assert to not fail loudly.

My apologies for not merely attaching this to Issue #48 as apparently I can't get the hub command to correctly submit a pull request to an existing issue. That's my own problem.

I added a test case here, it works, if this doesn't meet your satisfaction let me know! Happy to change.