More unit tests
More unit tests

This commit also breaks up the various unit tests into various
unittest.TestCase classes (still in the same module though).

ilveroluca/rapi,ilveroluca/rapi,ilveroluca/rapi,ilveroluca/rapi