added some tests for basevar_iter and comp_iter