Added some convert unit tests and fixed buffer tests.