fix static function names
use course restore capability test