Added tests to methods