Add Readline tests

@lmorduch: Please review.