Added a validator test and fixed a typo