re-organize for test case
make userentry public
add test case and fix issue with entry without roles