adds remaining tests. 84% coverage. need to simulate errors for full cov