Refactored jasmine spec helper and header spec