Test for function argument to factory.