Unit test for PHPWord main class

With some adjustment on the class itself based on the test.