Added test code for linux