Added tests to libraries and moved libraries