add zpool_get_state and test