Split off Tempest-related code to test/Tempest.hs