added simple test code