Use np.issscalar for scalar test