Add local-check test

Add new test file, and local-check option to tox.ini, so the local check
is only used inside of this repo

Fixes bug 1186415

Change-Id: If2e0e40a5fa8df02a7b53eeb567efd7dc5d0eeed
Merge "Add local-check test"