added tests for simulate functions