add some tests for addinfo method