Add tests and start create doctrine relation