write jasmine specs for #validWord method