Add a grunt task "benchmark"
Remove duplicate test code