added tests for pre/post multiply, fixed bug in post multiply