tests: Added to the unit tests to test ALL APIs.

There are many cases which fail and there are FIXMEs in the test case now
which we should fix before releasing.