Bug 1072493 - Add initial testing suites

Supersedes #2770 by moving the tests and improving the docs.