Fixed unit tests, added resize test