Fix base tests to work on Firefox.

Resolves #118.