[FIX, TEST]
- added tests
- added check for empty FASTA

fixes #653