MINOR code cleanup in 'state' test