Updated failing test cases, changes to to_fasta

The failing test cases were changed and appropriate changes were made
to to_fasta method so that it always returns useful information. All
test cases passing now.

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>