finish function table merging and enable testing