unit test template for optimisator