Fixed an error in condition tests.
Moved SimProcess to main namespace, code cleanup.