tests: string and regexp literals inside function