Corrected wrong visibility settings on Filters methods
Corrected two wrong PHP functions uses
Added tests for factory class