Refactored test code and added
an other test with formatting null.