Some view tests and modifications to user factory