Now that logging works, add integration tests