Models setup and tests for models + factories

Space inside { missing.<br>Space inside } missing.