Moved test to work with buffer from file and everything works
Forgot to add back test line