working through errors in test