Added drive pattern test in main.c