Fixed missing 0-9 in url regex
Added tests for permissions checking
Added team fields to match