fix unittest for scopes and add scope tests
Added $(AM_V_GEN) to alldemos, tntnet-project