Added a test function and verbosity macros