fixed two tests that fail wrongly under python3