add simple test benchmark
minor refactors