Fixed some bugs so phpunit works. Added tests for property functions, url functions and utilities functions