tests are failing now, time to write some unit tests