Added domain id updating with model.
Refactored tests to smaller files and tested site and domain creation on platform.