Added tests to ensure the Factory properly raises its own exception