changed functtests updated setup and teardown functions