By parameter dataloader i mean note in your test(dataloader, model, loss_fn) you have not used dataloader in the function instead used test_loader. This should not cause an issue but just wanted to point that out.
Looking at your outputs it seems to be working. In the future to check if your model is training you can try to overfit on a small dataset of say 50 samples.