Applied CS fixer (PSR-2). Added tests for CacheListener. Updated tests for TableProxyFactory.