added test code for linux