updated tests. added a bench test