Added tests for validy methods