fix failing test case and add shared scheme for travis build