Fix logging
JS view model testing for covariates UI and associated refactoring