fix reasonline and add test for success response