updated test to return 1 on success