wrote some tests for the frontend