Integrate functions_test to the test suite

It seems these tests have been abandoned for a while. One of them was broken since 540fec4ccb. They now run properly as part of the test suite.