better test and example