Test 1.
P1
2 1
10

P1
2 1
10

P1
2 1
10

Test 2.
P3
3 1
255
0 0 255 64 0 191 128 0 128 

P3
2 2
255
0 0 255 64 0 191 
128 0 128 128 0 128 

Test 3.
ok
ok
ok
ok
ok

Test Invalid.
Expected failure 1 1
Expected failure 2 1
Expected failure 3 1
Expected failure 4 1
Expected failure 5 1
Expected failure 6 1
Expected failure 7 1
