Stubbed source box test.
Refactored tests.
Added memory tests.