add matrix expr refine tests