Basic frontend unit testing

Mostly a place to start implementing them ;)