Moved test to module to remove cloudstack dependancy