Add specs for converting to object id