replacing reference to _associations var
starting cache implementation and tests