test for checking the first argument when factory or handler is defined