added test for str class