Development and Testing of an Autonomous Driving Module for Critical Driving Conditions