Added tests.
Added APIs for infos.