Added GetExpiresIn command and improved unit tests.