Added failing tests for bugs with model dirty tracking