Added TestState class.