add tests for dirty checking