expanding on some tests around validating code snippets
added completed flag to indicate whether synchronisation process finished