Updated test with PHPUnit annotation
Replaced regexps. No functional change intended