make sure Agent tests can run with known test values
added previous/key lookup by key and value
fixed Arr tests, assertEquals appearently does loose comparison...