Moved ReconcileTaskTest test to its own file.

Review: https://reviews.apache.org/r/21175
Fixed tasks reconciliation and added tests.

Review: https://reviews.apache.org/r/21236