Unit testing, profiling and benchmarking for R