test added & all logic moved to core.py fab only for cli