Add test case for subsampling layer.