added performance test with subtle bugs