switch to rule_test utility function to run string tests
switch to run_test utility function; fix some line endings