adding tests

This adds frontend and backend tests.