Improve defaultScope test case