ray based selection test, unfinished