Added new testing code for normal mode analysis.