add rspec tests for entity, agent. add exceptions to entity symbol dereferencing