Raises ValueError and Tests Added 

Raises a ValueError when unable to create clusters and also added tests