Move test code to package moeparser_test
use strings instead of regexps for speed