Added tests for ForKey selector.