began to implement tests, fixed authorization and fixed some bugs
fix: now coverage shows correctly