Adding ko factory source with initial unit tests