fix failing tests and buggy behavior in reflection mechanism

 - The one to find out if a task was handled or not.