Tree constructor made, with tests on three tree objects

Please review this code and commento!