Add more unittests and bugfixes for VaspInput.