removed test directory
extracted method from model to decorator