adding tests and first endpoints