Readline read history error

Testing error cases for the readline_read_history() function