Update tests in stable/havana

- keystone.test has been removed, so we need to use keystone.tests
  instead.
- Added unittest for user already in tenant
- PEP8 changes