Add previewStyle and urlString directive unit tests