implements edit latest_history form. and test bugfix.