fixed terminal_operations_tests, fixed bug when hitting enter with an empty list