This file has lots of duplicate stuff from the main. The objective with a test file is that you actually test each of the features (functions) of your method.

So, first, you have to split your main into appropriate functions. Then you have to test each of them and benchmark them against the expected results.

Check WFG or the Control part for some examples on how to do this.