more tests for as_string