testing Str class