Add basic task loop detection test

Change-Id: I5ed787ec3fb0694858955e5d675b5b7c0a6621df
6 files changed