use result function in test module
make the comparision between different pattern right