unit test for pallete object
unit tests now have full coverage