Fixed `.target()` return value and added unit tests (re #20)
Closes #38 - Added `.state` object-member and tests (re #20)