factor out common test cases and create grappa tests
Merge branch 'bmyerz-refactor-ctests' of github.com:uwescience/datalogcompiler into bmyerz-refactor-ctests
fix change dirs