Added assertion for testing .hasNext of various decoder