fix test.
clean unused opens and variables.