finish tests and add interface