Check for invalid upsampling block sizes
Add test cases for invalid block sizes