Updating test & refactoring
Encoding & Decoding on random pixels