#39 fixed tests and added spec for prettydate