fixed import tests
worked on solving the recursion
worked on api entities and recursion caused by serializer