Add test for return value