Functorise, start adding plain unix test cases

With all environmental aspects functorised, we can start adding tests for various ring configurations.