TST : added tests of to-scalar casting