Added tests to equals method and stripExtra