tests basic funtionality