Adding the first few tests and a bit of copypasta test infrastructure.