removed debugging and fixed test