Basic tests and benchmark