Fix class operation errors
All tests run without PHP errors