tests almost working