Fix nbQuery and return type for methods der_id and der_id_noAI
Initial value for nbQuery attribute
Beginning unit test integration