Adding a test level and some useful functions.