Added tests for global method.