Refactored the implementation of Expect

Also renamed it to It
Added some tests and fixed a bug in "It"

Bit by Python closures, again! Seems I get pit by them every time I try
to use them in a loop. Reminiscent of C# problems...