Fixed case when validateUserId function did not detect numeric community ID correctly.
Added more tests for user tools (related to #8).