fragment selection - add tests