Fixed static decode method
Added test for non-static and static method call