Added controller and feature tests for trending libraries functionality