Adding test case for 1D mortar method

Closes #4211