Add test to check success status is set