Updated README.
Added states tests.