Added enqueue method and tests