move frontend test into test classes. Put begin block in the right
place.