[BISERVER-8039] Throwing expected errors from Aggregate Factory. Fixed s...

...pring unit test