fixing validation error and adding more tests