Added colorspace tests
Fixed bugs in colorspace.