user detail controller unit tests