rename test/frontend to test/test_frontend
Add test settings and fix small issue

+ improve comments