[FIX] added additional test to check whether SAM/BAM header was read before the first record