Added cucumber features for pdf exporting. Fixed a bug.
Fixed the broken features.