Added auto test to the main class.