core: fix EOF reaching

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
update test syntax

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>