Add QUnit test framework
Set up public methods for testing