repaired fatal errors in unit tests