not prefixing id when strlen of idprefix is 0
adding id prefix test
fixing case
making tests more atomic