Bug 1072493 - Add initial testing suites

Supersedes #2770 to move the tests and improve the docs.
This file wasn't meant to be added to the commit, was simply a test file.  Should be removed completely.