Fix warnings, tests

This makes the module installable with panda