frontend tests + some bug fixes