fixed unit test, removed overly fragile unit tests