[BUGFIX] Use next for loop control (recheck condition)
Adds background parsing definitions
Adds tests to test suite for background parsing