add a simple test with unmodified template, waiting for update the code
add code to test application class
add error callback in constructor of application class, but it's ugly, looking for better implementation in C++