Fix specs and username function.