Fixing compilation error and updating test case.

- Adding a missing ';' to last testCommandParsingWithForeignSource command
- Setting and resetting the system boolean org.opennms.rrd.storeByForeignSource
  to true and false respectively to test the updated
  org.opennms.netmgt.jasper.resource.ResourceQuery().constructBasePath()
  function