add free_symbol test for all matrix types