Some debug and tests