Fixed all worker specs. Introdcuing error classes