move the tester into a seperate module so it can be used by other projects
Tests and fix for #1689
clamped rgba format color output.