Added testing structure and support functions.