Add unit tests for before validaiton methods