string tests with non default dictionary refactored