added subscription and test for update query