Easier testing code for dealing with fixtures.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Extra tests for #20.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>