recursive call
Test for Scope json serialization, converted test to use scalatest