fixing a bug on issue 345
add new test file
fix the saving issue on gift certificate detail
merge after pull