refactor. tests. initial status backend implementation