added seek testing case and also improved error handling