Functional test move

Moved the functional tests as well as other test related code. Didn't really rename anything.