Move matcher in hamcrest package.
Add matcher for longs with delta.
Add tests for state.