Added some tests to bsim.
Fixed code to pass tests. Added tests to verify fixes.
Added tests for BSim.Beta.Memory.
New tests and changes/fixes for tests.
More emulation tests (and a bug fix)