Adding a test and debugging