Add environment to agent when agent is added to environment
Add initial tests for agent/environment/rules

We will probably refactor how we get and set properties,
to make it both less wordy in tests and more standardized