Move setup and add setup tests.