Split local-test into separate functional-test namespaces

This just moves code around. local-test was actually a bunch of functional tests, so I broke it up and called them functional tests.