Setup casperjs correctly and refactor admin test with new API