Fix tests

Fixes tests and hides warnings.
Instead of allowing `ctypes`, the appropriate types should be annotated with `#[repr(C)]`.