Added a type and error message for ref, figured out namespaces when testing via eval
Added NullPointerException, added testing for exceptions