Solved problem with cached, classes and default parameters
Tests for cached method