Fix unit tests for cases where frontend is not built