Fix find_attribute_id; add tests to ProcessLayer for methods find_attribute_id and add_attributes and move also previous tests into test directory