adding tests for elm middleware