Tenants module tests

Added tests for the tenants module