Add tests for image check constraint