Add queue unit tests