unit tests for the backend