Add test case for encoding scope parameter.