Updated the tests to use LavObject

This was mostly find/replace, with minor ffi.cast usage.