Move Devstack related code inside test_ method