(test) Added tests for basic functionality and panic resilience.