Issue #204: Move all tests for core modules into /tests folder.

Replacement PR for https://github.com/backdrop/backdrop/pull/522.

Fixes https://github.com/backdrop/backdrop-issues/issues/204