Fixed bug in test for addScalar()