tests for selection cleaned up