Update test case to use new short-hand 'factory component' method.