test: group by frontend/backend and put them into sub directories

test/frontend-XXX ->
test/frontend/XXX

test/backend-XXX ->
test/backend/XXX