add to test_basic, fix isscalar edge case