Fixed tests for compatibility with error_reporting = -1
Fixed method names
Fixed namespaces