Fix warnings in unit tests.
Rewrite unit test for `PackedPixel` class

Testing PackedPixel with 4 channels as RGBA pixel type is easier to
understand.
Reformat lines of code in `CMakeLists.txt`.