Add test for terminal interaction

- Add method for artificial delay