handle invalid id format on base document
changed error message text
added test for no id