Implements clear() method in factories to prune cached objects
Merge pull request #448 from nsendetzky/2014-02-02_tests-cleanup

Implements clear() method in factories to prune cached objects