fix in fatalexceptionhandler + add tests