added testing for scalar.jl