Made sure params are stored on context
Sorted post hook exception handling
Fixed failing tests
Fixed more tests