Refactored pixel tests