refactor tests for assets