Reorganizing tests.
Made sure the attribute is deleted before adding it back.
Switched the properties to cached properties because there is no reason to recreate the date part query descriptor every time.
Added more field unit tests.
Merge remote-tracking branch 'origin/master'