Integration tests

Don't merge yet if not needed.