Add scope test for junit