decode tests