added console interaction in the tests