Added a test code