JAccessTest::testCheck

Tests the JAccess::check method.