Added tests and benchs.