Adding validation unit tests