Added stress tests as well as test optimizations and good practices