When running a test interactively, also open the test file for editing

This give you immediate access to the test's code so you can figure
out where things went wrong.
Fix test 613 to work around a bug in loadhist
Disable local variables while testing

This eliminates the prompt about local variables when emacs opens the
test file for an interactive test.
Improve robustness and portability of test scripts