Added unittests which check if the correct c++ templates are selected
More PAX layout functionality - nearly done, some tests are failing