Better integration tests for libraries