Adding Test functionals and global