fixed issue with #pallete() method and updated tests
updated examples to use #pallete()