Changed tests to report error value on requests, fixed some typos
Fixed hanlding of zero count, state now reverts to NO_ACTION. Fixed potential faults in debug logic