Should move these to functional tests.