Unit tests for image manipulation