Tests and getUserId