Added PRE_TARGETDEPS [ci skip]
Bug fix: hasPendingEvents() result ignored
Updated tests [ci skip]
Update .gitignore [ci skip]
Close #4