Added a backend test suite and some backend functions for use with the frontend