unittests for simulator