Basic testing infrastructure

/cc @pedro