Create custom path alias when new user is added in drupal 7 I've created contents using custom form. I don't use content types. I could add, update and delete that content by access test, test/id/edit and test/id/delete. 

I've displayed content lists for a user by tests/uid. Now I want to use user name instead of uid. I have to replace space by '-' and also replace all special characters. So my choice is both url alias and path auto.

But I couldn't add custom url pattern into pathauto pattern. There is only available for content types, taxonomy term, user and file path. But I want to custom url pattern for custom content inside the user path.
If I understand your question correctly, you're wanting to implement Pathauto's API. Here's a tutorial on how to do so. Basically, you need to implement hook_pathauto() and make use of pathauto_create_alias() &amp; path_delete() when you're performing your Create/Update/Delete operations. It looks like you can use the token_type of user for your token replacement.