add function to rebuild a case from its forms + test updates