Fixes #4: Added tests for checkhidden method