updating test for not valid encoding