Fixed an association error, added main controller routing tests