First version of test_crab.py and added to crab.py