Added test for matrix scale function