finished casa generation, implementing tests