Add a test for binding to 'factory' as constructor