added test for converting to scalar