Fix self test for bug fix