Refactor tests.

Introduce meaningful assertions and expectations, tidy up variables with let().