tests for val::as on strings and val too