Corrected missing parenthesis and added test for has_access