Added methods hasRef and hasParams
Tests