Fix typo based bug with not updating details

Add test for detail updating