Add specs for factories that throw exceptions