added: ex7 unit tests