Addding Junit Testing

tests added for Cockroach.java