Fix test and example.