Added tests for scalar operations