Force dev mode when running tests

Fixed some potential invalid index references