Implement GRex unit tests