Split functional tests.
Added more tests.