added test and travis changes for composer