Modified test invocation into main function. Created CentralWidget class