Add get_last_status() and test by the interface (close gh-7).