enable test in make file and fix compile error

http://koji.fedoraproject.org/koji/taskinfo?taskID=5149231