Added more sophisticated test, and started planning the interface between the backend and the frontend