Add tests for upsampling.