Fixes bug when transitioning work items
Optimises build for test deploy