Improved some tests to ensure better quality

The tests are verifying if the number of spaces inside the institutions are consistent after the space change between institutions. For it was developed a new function inside the space model to set a specific institution for a space.

Refs #1069