adds tests and code benchmarkjs