Adding tests and README