diff --git a/tests/test_decode.py b/tests/test_decode.py
index <HASH>..<HASH> 100644
--- a/tests/test_decode.py
+++ b/tests/test_decode.py
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-from bencoder import bdecode
+from bencoder import bdecode, bdecode2
 import os
 import sys
 
@@ -10,6 +10,12 @@ TORRENT_PATH = os.path.join(
 )
 
 
+def test_decode2():
+    decoded, length = bdecode2(b'6:WWWWWWi233e')
+    assert decoded == b'WWWWWW'
+    assert length == 8
+
+
 def test_decode_str(benchmark):
     assert benchmark(bdecode, b'6:WWWWWW') == b"WWWWWW"
Add test for bdecode2