Fix compiler warnings and make test output more colourful