Make parseItem values public
modify test_server to loop over state functions