Update test functions BEFORE tests

I am not sure I am right here but it seems `specs` should be called before `test` when using `make check-before-commit`