Add some tests

Only testing the processing/resizing at the moment.

Also checking for errors that currently are hard-coded to `return nil`... maybe we should fix that sometime.