Added self test.