refactor entity tests
add repositories
add service class
check auth credentials in api
working on repositories