tests: string and regexp literals inside function

Let's start with some trivial string and regexp literals in order to
see whether I get the fixtures test style right. Seems weird to me to
add the same code to three different files, is this how it's done?