Corrected the banded_matrix bugs and created added some more tests