Do not leak user during make check

Fix sql_parser_spec, sql_test_spec and layer_spec.
Closes #244