Hacky, and somewhat buggy test code for object picking