add first success test case and production code