added tests for regexr
added test for print.regex