Fixed #39: Removed dependency on remote testing repository, added a bunch of tests to increase coverage.