hot fixes and tests
Move method from helpers to model. Add spec tests for methods in Article model.