Testing for shallow water waves on a grid solver using both implicit and explicit formulation