basic tests and benchmarking for serial code