Add timeouts in emacs integration tests

Previously it could hang indefinitely on failure