added pre/post-multiply tests for agrad matrix rev