removed unnecessary id query in test