Fixes testcase and improve docblock.

Signed-off-by: crynobone <crynobone@gmail.com>