adds workspace factory and some specs tests