Refactored the test spec

Removed repetitive strings from the test spec