refactor test for testing on jenkins