Modified and DRYed factory spec
Added specs to test state_method functionality.
Added factory spec test missing attribute on hash associated with a state_method and fixed logic in Representor module to return correct state.