Added basic test functionality.