testing for invalid states when sending array of states

Signed-off-by: Frode Marton Meling <fm@saltship.com>