Fix typo in unit tests

A couple of unit tests misspelt 'factory'.

Fixes bug 1312776

Change-Id: I1c3a7ba63671aff4d866d0501c941ce637238546
Merge "Fix typo in unit tests"