define default middleware classes

in order to avoid warnings during tests