add timeout for worker changer
fix photo gallery. add photo and category_photo controllers test. Some fixes for controller CategoryPhoto