Anbangx/cleanup test cases

Hi ALL,

I cleaned up and fixed all pattern's test cases in JUnit test.
Look up the result and check the correctness. I will set the fixed random seed and add expected folder soon. Additionally, if there is any error when you run in cluster, please record and issue them. I don't have any idea how these patterns work in cluster. Let's figure out together.

@JavierJia @jakebiesinger @Nan-Zhang : Have a look at the refactor code. 

Thank you so much. Have a good weekend!