Fixed some weird back-end test bugs