adding tests to colour writer