Shared behaviour for Karma, to help DRY your test suite.