add new test case wpp_encode