Added tests for selectf in core-test