Update query functions and implement tests