Added some testscases and build scripts.