refactor elastica tests slightly