integration test and main functionalities working