move functional_tests to function_tests app, use LiveServerTestCase