[SJS-161][TEST]: Write tests for _condition() function