added test of StateAdapter