new tests and clean backend and fronend api