Fixed linking issues with test app