Add assertions

Added a few assertions. Intentionally left out tests that require the DOM to keep things simple.