Some validation is inherited from the implementation of agg project but some is missing and complete tests are needed.