Write more tests, add integration tests, upgrade inferpackages to work with new result tuples