fix tests 336 and 349