Added a test case and documentation to the spec factory use case.