Fixed bug in test.lua and changed default behavior in calculator

-If the operator does not exist, return error instead of nil
-Fixed bug in test.lua with pcall