Added test suit and a mock tool for eportal.