Adding tests for 'has' function