On the isomorphism problem for generalized Baumslag-Solitar groups