tests: don't use valgrind on static binaries
calc: bugfix for headers without grouping
calc: free column headers, add tests