some simple tests and debug for my code