added scope test to junit