Fixed bug in test
Clear profile before loading new ones
Moved lib out of package