Fixed returned value by keyedInstancesWhere:
Added test for keyedInstancesWhere: